client: client.o login_check.o tcpInit.o deal_command.o file_transfer_client.o printLog.o
	gcc client.o login_check.o tcpInit.o deal_command.o file_transfer_client.o printLog.o -o client -lpthread -lcrypt
	sudo chown root:root client
	sudo chmod u+s client
client.o:client.c
	gcc -c client.c -o client.o -g -Wall 
login_check.o:login_check.c
	gcc -c login_check.c -o login_check.o -g -Wall
tcpInit.o:tcpInit.c
	gcc -c tcpInit.c -o tcpInit.o -g -Wall
deal_command.o:deal_command.c
	gcc -c deal_command.c -o deal_command.o -g -Wall
file_transfer_client.o:file_transfer_client.c
	gcc -c file_transfer_client.c -o file_transfer_client.o -g -Wall
printLog.o:printLog.c
	gcc -c printLog.c -o printLog.o -g -Wall
clean:
	rm -f *.o client messageInf.log
